<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理--增加</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
	function contractEnd(){
		var arr = showModalDialog("<%=request.getContextPath()%>/unit/unitContractEnd.jsp?empConId=${ecInfo.empConId}", "", "dialogWidth:500pt;dialogHeight:200pt;help:0;status:0");
		document.location.reload();
	}
	</script>
</head>

<body>

<form action="" name="form1">

<table width="70%">
<input name="ecid" type="hidden" value="${ecInfo.empConId}">
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>单位名称：</p>
    </td>
    <td width="75%" align="left" >${eInfo.empInfoName}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue"align="right"> 法人代表：</td>
    <td align="left">${eInfo.empInfoCorporateRepresent}</td>
  </tr>
  
  <tr>
    <td class="bg_blue" align="right"><p>职工姓名：</p>
    </td>
    <td align="left" >${ecInfo.empConEmpName}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>性别：</p>
    </td>
    <td align="left" ><c:if test="${ecInfo.empConEmpSex == '0'}">男</c:if><c:if test="${ecInfo.empConEmpSex == '1'}">女</c:if>&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>身份证号：</p>
    </td>
    <td align="left" >${ecInfo.empConIdCardNum}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>文化程度：</p>
    </td>
    <td align="left" >
        <cms:query value="${ecInfo.empConEducationLevel}"></cms:query>
    </td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>户籍所在地：</p>
    </td>
    <td align="left" >${ecInfo.empConHouse}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>家庭住址：</p>
    </td>
    <td align="left" >${ecInfo.empConAddress}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>联系电话：</p>
    </td>
    <td align="left" >${ecInfo.empConPhone}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>工种：</p>
    </td>
    <td align="left" >${ecInfo.empConWordType}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>用工形式：</p>
    </td>
    <td align="left" ><cms:query value="${ecInfo.empConWorkType}"></cms:query>
    </td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>职业资格证书：</p>
    </td>
    <td align="left" >
    <c:if test="${ecInfo.empConCompetence == '0'}">无</c:if>
	<c:if test="${ecInfo.empConCompetence == '1'}">初级</c:if>
	<c:if test="${ecInfo.empConCompetence == '2'}">中级</c:if>
	<c:if test="${ecInfo.empConCompetence == '3'}">高级</c:if>
    &nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>录用日期：</p>
    </td>
    <td align="left" ><fmt:formatDate pattern="yyyy-MM-dd" value="${ecInfo.empConEmpDate}"/>
    </td>
  </tr>
  <tr>
    <td class="bg_blue"align="right">合同期限：</td>
    <td align="left">
    <c:if test="${ecInfo.empConContractTime == '0'}">1年以下</c:if>
    <c:if test="${ecInfo.empConContractTime == '1'}">1-3年</c:if>
    <c:if test="${ecInfo.empConContractTime == '2'}">3-5年</c:if>
    <c:if test="${ecInfo.empConContractTime == '3'}">无固定期限</c:if>
    </td>
  </tr>
  <tr>
    <td class="bg_blue"align="right"><p>合同开始日期：</p>
    </td>
    <td align="left"><fmt:formatDate pattern="yyyy-MM-dd" value="${ecInfo.empConContractBeginTime}"/></td>
  </tr>
  <tr>
    <td class="bg_blue"align="right">合同结束日期：</td>
    <td align="left"><fmt:formatDate pattern="yyyy-MM-dd" value="${ecInfo.empConContractEndTime}"/></td>
  </tr>
  
  <tr>
    <td class="bg_blue"align="right"> 工作岗位：</td>
    <td align="left">${ecInfo.empConPost}</td>
  </tr>
  <c:if test="${!empty ecInfo.empConContractFileUrl}">
  <tr>
    <td class="bg_blue"align="right">合同文件：</td>
    <td align="left">${ecInfo.empConContractFileUrl} <a href="<%=request.getContextPath()%>/contract/${ecInfo.empConContractFileUrl}" target="_blank">下载</a></td>
  </tr>
  </c:if>
  <tr>
    <td class="bg_blue" align="right">合同状态：</td>
    <td align="left"><jsp:useBean id="now" class="java.util.Date" />
     <c:if test="${ecInfo.empConState == '0' && now > ecInfo.empConContractEndTime}">已过期</c:if>
	 <c:if test="${ecInfo.empConState == '0' && now < ecInfo.empConContractEndTime}">正常<c:if test="${ecInfo.empConContractType == '1'}">(续定)</c:if></c:if>
	 <c:if test="${ecInfo.empConState == '1'}">已续定</c:if>
	 <c:if test="${ecInfo.empConState == '2'}">已解除</c:if>
    </td>
  </tr>
  <c:if test="${ecInfo.empConState == '2'}">
  <tr>
    <td class="bg_blue" align="right"><p>解除合同日期：</p>
    </td>
    <td align="left"><fmt:formatDate pattern="yyyy-MM-dd" value="${ecInfo.empConRecontractendTime}"/></td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>解除合同原因：</p>
    </td>
    <td align="left">${ecInfo.empConEndCouse}</td>
  </tr>
  </c:if>
  <tr>
    <td class="nohover" colspan="2" align="center"><c:if test="${ecInfo.empConState == '0' && now < ecInfo.empConContractEndTime}"><input class="buttonnormal" type="button" value="合同续订" onClick="javascript:if(confirm('确定要续定该合同吗？')){window.location.href='<%=request.getContextPath()%>/UnitContractInfo.do?method=contractGo&ecid=${ecInfo.empConId}'}"/>&nbsp;&nbsp;&nbsp;&nbsp;<input class="buttonnormal" type="button" value="解除合同" onClick="return contractEnd()"/>&nbsp;&nbsp;&nbsp;&nbsp;</c:if><input class="buttonreturn" type="button" value="返回" onClick="javascript:window.location.href='<%=request.getContextPath()%>/UnitContractInfo.do?method=list'"/></td>
  </tr>
</table>
</form>
</body>
</html>
